package com.it.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.it.domain.BlogTypeEntity;
import com.it.util.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * @author : code1997
 * @date : 2021/9/9 22:46
 */
public interface BlogTypeService extends IService<BlogTypeEntity> {

    /**
     * 保存一个type
     */
    BlogTypeEntity saveType(BlogTypeEntity blogTypeEntity);

    /**
     * 根据id获取type
     */
    BlogTypeEntity getType(Long id);

    PageUtils listType(Map<String, Object> params);

    List<BlogTypeEntity> listType();

    List<BlogTypeEntity> listTypeTop(Integer size);

    BlogTypeEntity updateType(Long id, BlogTypeEntity blogTypeEntity);

    void deleteType(Long id);

    BlogTypeEntity getTypeByName(String name);

}
